package com.tonny.tweet.dao;

import java.util.List;

import com.tonny.tweet.model.Tweet;

public interface TweetDao {
    int insert(Tweet tweet);
    
    List<Tweet> queryByUserId(long userId, int status, int offset, int limit);
    
    long countByUserId(long userId);
    
    Tweet queryById(long tweetId);
    
    int updateStatus(long tweetId, Integer status);
    
}
